public class Fibonacci {
    public static void main(String[] args) {
        System.out.println(sequence(4));
    }

    public static int sequence(int n){
        if (n == 1 || n == 2){
            return 1;
        }
        else {
            return sequence(n - 1)  + sequence(n -2);
        }
    }
}
